import antfu from '@antfu/eslint-config'

export default antfu(
  {
    unocss: true,
    typescript: true,
    vue: true,
  },
  {
    rules: {
      'comma-dangle': [
        'error',
        'never',
      ],
      '@typescript-eslint/comma-dangle': [
        'error',
        'never',
      ],
      'vue/html-self-closing': [
        'error',
        {
          html: {
            void: 'always',
            normal: 'never',
            component: 'always',
          },
          svg: 'always',
          math: 'always',
        },
      ],
      'unused-imports/no-unused-imports': 'off',
    },
  },
)
